package com.baymax.test.scene.demo

import com.baymax.test.scene.BaseScene
import android.view.LayoutInflater
import android.view.ViewGroup
import android.os.Bundle
import android.view.View
import com.baymax.lib.replace.StringElementReplacer
import com.baymax.test.scene.addButton
import com.baymax.test.scene.newScrollContainer
import com.baymax.test.scene.replace.ReplaceManager

/**
 * @title: 标题
 * @project: TestScene
 * @package: com.baymax.test.scene
 * @class: ReplaceScene
 * @description:
 *
 *
 * 类描述
 *
 *
 * @version: 1.0
 * @createDate: 2022/12/19 15:30
 * @Copyright (C) 2022 YSTEN
 * @author: xuyujian
 */
class ReplaceScene : BaseScene() {
    override fun onCreateView(
        layoutInflater: LayoutInflater,
        viewGroup: ViewGroup,
        bundle: Bundle?
    ): View {
        ReplaceManager.registerReplacer()
        return viewGroup.newScrollContainer {
            addButton("replace"){
               // val r = ReplaceManager.replace(null)
                //println(r)
            }
        }
    }
}